import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'AddBorrow',
        component: () => import('../vitews/AddBorrow.vue')
    },
    {
        path: '/ShowBorrow',
        name: 'ShowBorrow',
        component: () => import('../vitews/ShowBorrow.vue')
    },
    {
        path: '/UpdBorrow/:BId',
        name: 'UpdBorrow',
        component: () => import('../vitews/UpdBorrow.vue')
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router; // 导出路由器